package yourobot.config;

import java.awt.Color;

/**
 * 
 * @author mehdimasrour
 *
 */
public class ColorConfig {
	
	private final Color color;
	
	/**
	 * 
	 * @param p Id of the player (1 or 2 atm)
	 */
	public ColorConfig(int p){
		if ( p == 1 ){
			color = new Color(255, 0, 0);
		}
		else{
			color = new Color(255, 255, 0);
		}
	}
	
	/**
	 * 
	 * @return the color associated with the player
	 */
	public Color getColor(){
		return color;
	}
	
}
